package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Diary;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DiaryDao {


    Page findPage(@Param("queryString") String queryString);

    List<Diary> findAll();

    Integer findByNameOrCode(Diary diary);

    Integer add(Diary diary);

    Integer update(Diary diary);

    Integer delete(@Param("id") int id);

    Integer findByMember(@Param("member") String member);

    void upload(Diary diary);
}
